const path = require('path')
const Command = require('./lib/command.js')
const pkg = require('./package.json')

const usage = 'Usage: xz-cli <command> [options]'
const version = `xz-cli version: v${pkg.version}`

class XzCli extends Command {
  constructor(rawArgv) {
    super(rawArgv)

    this.usage = usage
    this.version = version

    this.load(path.join(__dirname, './lib/cmd'))
  }
}

module.exports = exports = XzCli